package com.yyxh.laiojbackend.model.dto.question;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 创建请求
 *
 
 */
@ApiModel(value = "题目添加表单")
@Data
public class QuestionAddRequest implements Serializable {

    /**
     * 题目标题
     */
    @ApiModelProperty(value = "题目标题",dataType = "String",required = true,example = "A+B")
    private String title;

    /**
     * 题目内容
     */
    @ApiModelProperty(value = "题目内容",dataType = "String",required = true,example = "A+B的值是多少")
    private String content;

    /**
     * 标签列表（json 数组）
     */
    @ApiModelProperty(value = "题目标签列表",dataType = "List<String>",required = true,example = "[\"栈\",\"简单\"]")
    private List<String> tags;

    /**
     * 题目答案
     */
    @ApiModelProperty(value = "题目答案",dataType = "String",required = true,example = "代码（省略）")
    private String answer;

    /**
     * 判题用例（json数组）
     */
    @ApiModelProperty(value = "判题用例",dataType = "List<JudgeCase>",required = true,example = "[{\"input\":\"1 2\",\"output\":\"3\"}]")
    private List<JudgeCase> judgeCase;

    /**
     * 判题配置（json数组）
     */
    @ApiModelProperty(value = "题目答案",dataType = "String",required = true)
    private JudgeConfig judgeConfig;


    private static final long serialVersionUID = 1L;
}